package com.chinasofti.suse.ssm.ssmintegrated.service.impl;

import com.chinasofti.suse.ssm.ssmintegrated.dao.EarthQuakeMapper;
import com.chinasofti.suse.ssm.ssmintegrated.model.EarthQuake;
import com.chinasofti.suse.ssm.ssmintegrated.service.EarthQuakeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EarthQuakeServiceImpl implements EarthQuakeService {

    @Autowired
    private EarthQuakeMapper earthQuakeMapper;

    @Override
    public List<EarthQuake> getAll() {
        return earthQuakeMapper.findAll();
    }
}
